// 管理用户的相关的接口
import request from '@/utils/request'
import type { logingRquData, logingResData, userInFoResData } from './type'
enum API {
  LOGIN_URL = '/user/login',
  USERINFO_URL = '/user/info',
}
// 登录
export const reqLogin = (data: logingRquData) =>
  request.post<any, logingResData>(API.LOGIN_URL, data)
// 用户信息
export const reqUserInFo = () =>
  request.get<any, userInFoResData>(API.USERINFO_URL)
